Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests to provision 3 nodes cluster tests with a replicated loglet with replication property 2 #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tillrohrmann
Copy link
Contributor

This commit adds the NodeCtl grpc svc to the repo to generate a grpc client to manually provision a replicated loglet with a replciation property 2. W/o manually provisioning the cluster, the replication property defaults to 1.

Note: Whenever the *.proto files change in the restate repo, they need to be updated in this repository as well if there is an incompatible change.

This fixes #26.

Comment on lines 24 to 23
{
"moduleLicense": "COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0"
}
Copy link
Contributor Author

@tillrohrmann tillrohrmann Dec 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This license is needed for javax.annotation:javax.annotation-api which is pulled in by io.grpc:grpc-kotlin-stub. It should not be a problem since we are not changing the sources.

@@ -46,24 +46,28 @@ class RestateContainer(
private val WAIT_STARTUP_STRATEGY =
WaitAllStrategy()
.withStrategy(
Wait.forHttp("/restate/health")
.forPort(RUNTIME_INGRESS_ENDPOINT_PORT)
Wait.forHttp("/metrics")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/metrics will be reachable once the node grpc server starts up. Note at this point (if manual provisioning is enabled) the other services (ingress, admin, etc.) are not yet running.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you put this as comment in code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

@tillrohrmann tillrohrmann force-pushed the issues/26 branch 2 times, most recently from 2aa6f7e to e4c415e Compare December 30, 2024 10:53
@tillrohrmann
Copy link
Contributor Author

Gentle reminder @slinkydeveloper in case it went unnoticed before.

Copy link
Collaborator

@slinkydeveloper slinkydeveloper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For what I can tell, makes sense to me. I left some small comments.

build.gradle.kts Outdated
@@ -19,6 +21,8 @@ repositories {
mavenCentral()
// OSSRH Snapshots repo
maven { url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") }
// for protobuf-gradle-plugin dependencies
google()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?! aren't those on maven central? i never pulled from their maven repo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me try to build w/o it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be not needed indeed. Will remove it.

@@ -46,24 +46,28 @@ class RestateContainer(
private val WAIT_STARTUP_STRATEGY =
WaitAllStrategy()
.withStrategy(
Wait.forHttp("/restate/health")
.forPort(RUNTIME_INGRESS_ENDPOINT_PORT)
Wait.forHttp("/metrics")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you put this as comment in code?

@tillrohrmann tillrohrmann force-pushed the issues/26 branch 2 times, most recently from 3a45dc5 to 4a94d8a Compare January 14, 2025 11:57
"RESTATE_ALLOW_BOOTSTRAP" to "true",
"RESTATE_BIFROST__DEFAULT_PROVIDER" to "replicated",
"RESTATE_BIFROST__REPLICATED_LOGLET__DEFAULT_REPLICATION_PROPERTY" to "2",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provision Restate three node test cluster with replication property of 2
2 participants